package tv.youxing.android.custom;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import tv.youxing.android.R;

/**
 * Created by Administrator on 2017/6/30.
 */

public class CustomLoadDialog extends ProgressDialog {


    public CustomLoadDialog(Context context) {
        super(context);
        setCanceledOnTouchOutside(true);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
        initData();
    }

    private void initData() {


        this.setCanceledOnTouchOutside(false);


    }

    public void setContent(String str) {
    }

    private void initView() {
        setContentView(R.layout.dialog_loading);

    }


    /**
     * oncreate 之后
     */
    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        // TODO Auto-generated method stub
//		mAnimation.start();
        super.onWindowFocusChanged(hasFocus);
    }
}
